<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:url value="/" var="racine" />
<h1>Virement</h1>


<form:form method="POST" action="${racine}client/effectuerVirement.html"
	commandName="virement">
	<table class="centre" cellspacing="5">
		<tr>
			<th rowspan="4" align="center"><img alt="user"
				src="${racine}img/virement.gif" />
			</th>
			<td>Compte Source</td>
			<td><form:select path="idCompteSource" id="compteSource">
					<c:forEach items="${comptes}" var="compte">
						<form:option value="${compte.id}">${compte.numero} -
				${compte.libelle}</form:option>
					</c:forEach>
				</form:select>
			</td>
		</tr>
		<tr>
			<td>Compte Destination</td>
			<td><form:select path="idCompteDestination"
					id="compteDestination">
					<c:forEach items="${comptes}" var="compte">
						<form:option value="${compte.id}">${compte.numero} -
				${compte.libelle}</form:option>
					</c:forEach>
				</form:select>
			</td>
		</tr>
		<tr>
			<td>Montant</td>
			<td><input type="text" name="montant" id="montant" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td align="center"><input type="submit" id="virer" value="Virer" />
			</td>
		</tr>
		<tr>
			<td colspan="3" align="center">
				<p class="rouge " id="erreur_identification">${messageErreur }<form:errors path="*" /></p></td>
		</tr>
	</table>
</form:form>